<?php
namespace app\common\model;

use think\Db;
use think\Model;

/**
 * 设备升级
 */
class EquipmentUpgradeLogEquipmentModel extends Model
{
    // 表名
    protected $dbName = 'equipment_upgrade_log_equipment';

    // 列表查询
    public function getAll($where=[], $field = '*',$join=array(), $order='rq_equipment_upgrade_log_equipment.create_time DESC')
    {
        $result = Db::name($this->dbName)
                    ->where($where)
                    ->field($field)
                    ->join($join)
                    ->order($order)
                    ->select();
        return $result;
    }

}